package leetcode.code0352;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution352 implements IDebug {

	@Override
	public void debug1() {
		int[][] ans = null;
		SummaryRanges summaryRanges = new SummaryRanges();
		summaryRanges.addNum(1); // arr = [1]
		ans = summaryRanges.getIntervals(); // 返回 [[1, 1]]
		HelpDebug.print(ans);
		summaryRanges.addNum(3); // arr = [1, 3]
		ans = summaryRanges.getIntervals(); // 返回 [[1, 1], [3, 3]]
		HelpDebug.print(ans);
		summaryRanges.addNum(7); // arr = [1, 3, 7]
		ans = summaryRanges.getIntervals(); // 返回 [[1, 1], [3, 3], [7, 7]]
		HelpDebug.print(ans);
		summaryRanges.addNum(2); // arr = [1, 2, 3, 7]
		ans = summaryRanges.getIntervals(); // 返回 [[1, 3], [7, 7]]
		HelpDebug.print(ans);
		summaryRanges.addNum(6); // arr = [1, 2, 3, 6, 7]
		ans = summaryRanges.getIntervals(); // 返回 [[1, 3], [6, 7]]
		HelpDebug.print(ans);

	}

	@Override
	public void debug2() {
		// TODO Auto-generated method stub

	}

	@Override
	public void debug3() {
		// TODO Auto-generated method stub

	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
